#ifndef __CUSTOMIZABLE_TRIANGLEMESHNODE__
#define __CUSTOMIZABLE_TRIANGLEMESHNODE__
#include <vector>
class ICustomizableTriangleMeshNode:public irr::scene::ISceneNode{
	irr::core::aabbox3d<irr::f32>Box;
	std::vector<irr::video::S3DVertex>Vertices;
	std::vector<irr::u16>Indices;
	irr::video::SMaterial Material;
public:
	ICustomizableTriangleMeshNode(irr::scene::ISceneNode* parent, irr::scene::ISceneManager* mgr,irr::s32 id);
	virtual void OnRegisterSceneNode();
	virtual void render();
	virtual const irr::core::aabbox3d<irr::f32>& getBoundingBox() const;
	virtual irr::u32 getMaterialCount() const;
	virtual irr::video::SMaterial& getMaterial(irr::u32 i);
	virtual irr::u16*getIndices();
	virtual void setIndices(irr::u16*indices, int indicesCount);
	virtual irr::s32 getIndicesCount();
	virtual irr::s32 getVertexCount();
	virtual irr::video::S3DVertex*getVertices();
	virtual void setVertices(irr::video::S3DVertex*vertices, int verticesCount);
	virtual void recalculate();
};

#endif